<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>  
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<base href="<%=basePath%>>"> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
function type(){
	var myselect =document.getElementById("roomt");
	var index =myselect.selectedIndex;
	var va=myselect.options[index].value;
		location.href="test/queryx?type="+va;
	}
	
	
	
</script>
</head>
<body>
		
    
    <div class="rightinfo">
    
    
    
    <div class="formtitle"><span>入住登记</span>
    <span class="b" style="margin-left:800px ;border-bottom:none;">房间类型：
   <select id="roomt" name="roomt"  style="width:80px; height:25px;" >
      <option value="">请选择...</option>
    <option value="单人房">单人房</option>
    <option value="双人房">双人房</option>
    <option value="豪华间">豪华间</option>
    <option value="套间">套间</option>
    </select>
    <a href="javascript:type();" class="tablelink"  >查询</a>
       </span>
    </div>
    
    <table class="tablelist">
    	<thead>
    	
    	<tr>
      
       
        <th>序号<i class="sort"><img src="img/px.gif" /></i></th>
         <th>房间号</th>
        <th>房间类型</th>
        <th>房间楼层</th>
        <th>价格</th>
        <th>可入住人数</th>
        <th>已入住人数</th>
      	<th>操作</th>
        </tr>
        </thead>
        <tbody>
        
        <c:forEach var="rt" items="${list }">
        <tr>
      
         <td>${rt.id }</td>
        <td>${rt.roomid }</td>
        <td>${rt.roomtype }</td>
        <td>${rt.floor }</td>
        <td>${rt.price }</td>
        <td>${rt.clps }</td>
        <td>${rt.cips }</td>
        <td><a href="test/checkinroom?id=${rt.id }" class="tablelink">入住</a>   </td>
        </tr> 
     	</c:forEach>
          
          
        </tbody>
    </table>
    
   
    
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="img/ticon.png" /></span>
        <div class="tipright">
        <p>是否确认对信息的修改 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    
    
    
    
    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
	
	

<div style="display:none"><script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div>
</body>
</html>